20d0468b44f0f430164624760312fbc0669e3938,src/main/java/org/spongepowered/asm/mixin/injection/struct/ModifyConstantInjectionInfo.java,BeforeConstant,matchesInsn,#AbstractInsnNode#,133

Before Change


            
            Object value = ASMHelper.getConstant(insn);
            if (value == null) {
                if (this.log) {
                    BeforeConstant.logger.info("  BeforeConstant found NULL constant: nullValue = {}", this.nullValue);
                }
                return this.nullValue || Constants.OBJECT.equals(this.matchByType);
            } else if (value instanceof Integer) {
                if (this.log) {
                    BeforeConstant.logger.info("  BeforeConstant found INTEGER constant: value = {}, intValue = {}", value, this.intValue);
                }
                return value.equals(this.intValue) || "I".equals(this.matchByType);
            } else if (value instanceof Float) {
                if (this.log) {
                    BeforeConstant.logger.info("  BeforeConstant found FLOAT constant: value = {}, floatValue = {}", value, this.floatValue);
                }
                return value.equals(this.floatValue) || "F".equals(this.matchByType);
            } else if (value instanceof Long) {
                if (this.log) {
                    BeforeConstant.logger.info("  BeforeConstant found LONG constant: value = {}, longValue = {}", value, this.longValue);
                }
                return value.equals(this.longValue) || "J".equals(this.matchByType);
            } else if (value instanceof Double) {
                if (this.log) {
                    BeforeConstant.logger.info("  BeforeConstant found DOUBLE constant: value = {}, doubleValue = {}", value, this.doubleValue);
                }
                return value.equals(this.doubleValue) || "D".equals(this.matchByType);
            } else if (value instanceof String) {
                if (this.log) {
                    BeforeConstant.logger.info("  BeforeConstant found STRING constant: value = {}, stringValue = {}", value, this.stringValue);
                }
                return value.equals(this.stringValue) || Constants.STRING.equals(this.matchByType);
            } else if (value instanceof Type) {
                if (this.log) {
                    BeforeConstant.logger.info("  BeforeConstant found CLASS constant: value = {}, typeValue = {}", value, this.typeValue);
                }
                return value.equals(this.typeValue) || Constants.CLASS.equals(this.matchByType);

After Change


            
            Object value = ASMHelper.getConstant(insn);
            if (value == null) {
                this.log("  BeforeConstant found NULL constant: nullValue = {}", this.nullValue);
                return this.nullValue || Constants.OBJECT.equals(this.matchByType);
            } else if (value instanceof Integer) {
                this.log("  BeforeConstant found INTEGER constant: value = {}, intValue = {}", value, this.intValue);
                return value.equals(this.intValue) || "I".equals(this.matchByType);
            } else if (value instanceof Float) {
                this.log("  BeforeConstant found FLOAT constant: value = {}, floatValue = {}", value, this.floatValue);
                return value.equals(this.floatValue) || "F".equals(this.matchByType);
            } else if (value instanceof Long) {
                this.log("  BeforeConstant found LONG constant: value = {}, longValue = {}", value, this.longValue);
                return value.equals(this.longValue) || "J".equals(this.matchByType);
            } else if (value instanceof Double) {
                this.log("  BeforeConstant found DOUBLE constant: value = {}, doubleValue = {}", value, this.doubleValue);